<template>
  <a-card :bordered="false" class="proCard">
    <div class="result-box">
      <a-result status="error" title="操作失败" subtitle="请核对并修改以下信息后，再重新提交。" />
      <div class="result-box-extra">
        <p>您提交的内容有如下错误：</p>
        <p class="mt-1">
          <a-space align="center">
            <div class="flex">
              <icon-exclamation-circle style="color: #f0a020; font-size: 20px" />
            </div>
            <span>认证照片不够清晰</span>
            <a-button type="text">立即修改</a-button>
          </a-space>
        </p>
        <p class="mt-1">
          <a-space align="center">
            <div class="flex">
              <icon-exclamation-circle style="color: #f0a020; font-size: 20px" />
            </div>
            <span>备注包含敏感字符，并且不能包含政治相关</span>
            <a-button type="text">立即修改</a-button>
          </a-space>
        </p>
      </div>

      <a-space class="mb-4 mt-8">
        <a-button type="primary" @click="goHome">回到首页</a-button>
        <a-button>查看详情</a-button>
        <a-button>打印</a-button>
      </a-space>
    </div>
  </a-card>
</template>
<script lang="ts" setup>
  import { useRouter } from 'vue-router';
  import { IconExclamationCircle } from '@arco-design/web-vue/es/icon';

  const router = useRouter();

  function goHome() {
    router.push('/');
  }
</script>
<style lang="less" scoped>
  .result-box {
    width: 40%;
    margin: 0 auto;
    text-align: center;
    padding-top: 5px;

    &-extra {
      padding: 14px 40px;
      text-align: left;
      background: var(--color-fill-2);
      border-radius: 4px;
    }
  }
</style>
